
// @ts-nocheck
//我的注销订单
import request from "../request";

export const getEtcCancel = async (params: any) => {
    const {code, data, msg} = await request.post("etc-cancel/my/list/page", params);
    if (code !== 'A000') {
        console.log('调用失败 getEtcCancel：', data, msg)
        return data
    }
    return data
}

// 注销详情
export const getEtcCancelDetails = async (id: string) => {
    const {code, data, msg} = await request.get("etc-cancel/" + id);
    if (code !== 'A000') {
        console.log('调用失败 getEtcCancelDetails：', data, msg)
        return data
    }
    return data
}


//办理订单
export const getEtcApply = async (params: any) => {
    const {code, data, msg} = await request.post("etc-apply/my/page", params);
    if (code !== 'A000') {
        console.log('调用失败 getEtcApply：', data, msg)
        return data
    }
    return data
}

//办理详情
export const getEtcApplyDetails = async (id: string) => {
    const {code, data, msg} = await request.get("etc-apply/" + id);
    if (code !== 'A000') {
        console.log('调用失败 getEtcApplyDetails：', data, msg)
        return data
    }
    return data
}

//删除注销订单
export const delEtcCancelOrder = async (id: string) => {
    return await request.put("etc-cancel/del/" + id);
}

// ETC注销 -支付后填写资料
export const ETCCancelFillIn = async (id: any,params:any) => {
    return await request.put("etc-cancel/fill-in/"+ id,params);
}
